package com.gitee.wsl.common.svg.attributes

interface HasViewBox {
    var viewBox:String?

    fun viewBox(x:Float,y:Float,width:Float,height:Float){
        viewBox = "$x $y $width $height"
    }
}

class HasViewBoxImp(hasAttributes: HasAttributes):HasViewBox, HasAttributes by hasAttributes{
    override var viewBox:String? by AttributeProperty("viewBox", AttributeType.NumberList)
}